﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace BackupRestore.Gui
{
    public partial class SelectBasicAdvancedBackupPanel : UserControl
    {

        private static string _className;

        /// <summary>
        /// Reference to the UI Controller.
        /// </summary>
        private BackupRestoreUIController MainUIController;

        public SelectBasicAdvancedBackupPanel(BackupRestoreUIController UIController)
        {
            _className = MethodBase.GetCurrentMethod().DeclaringType.Name;
            this.MainUIController = UIController;

            InitializeComponent();
        }

        /// <summary>
        /// Deletegate function.  Called when user presses "Basic Backup" button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BasicBackupButton_Click(object sender, EventArgs e)
        {
            string _methodName = MethodBase.GetCurrentMethod().Name;

            Logger.Logger.LogMethodEntry(_className, _methodName);

            MainUIController.PerformBasicBackupButtonClicked();

            Logger.Logger.LogMethodExit(_className, _methodName);

        }

        /// <summary>
        /// Deletegate function.  Called when user presses "Advanced Backup" button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AdvancedBackupButton_Click(object sender, EventArgs e)
        {
            string _methodName = MethodBase.GetCurrentMethod().Name;

            Logger.Logger.LogMethodEntry(_className, _methodName);

            MainUIController.PerformAdvancedBackupButtonClicked();

            Logger.Logger.LogMethodExit(_className, _methodName);

        }
    }
}
